import 'dart:convert';

import 'package:safetymonitor/generated/json/alarm_resp_entity.g.dart';
import 'package:safetymonitor/generated/json/base/json_field.dart';
export 'package:safetymonitor/generated/json/alarm_resp_entity.g.dart';

/// 报警实体
@JsonSerializable()
class AlarmRespEntity {

	AlarmRespEntity();

	factory AlarmRespEntity.fromJson(Map<String, dynamic> json) => $AlarmRespEntityFromJson(json);
	///根据click 显示总公司，分公司的ui
	late int click = 0;
	late int id = 0;
	late int companyId = 0;
	late int systemId = 0;
	late String companyName = '';
	late int pointId = 0;
	late String point = '';
	late int alarmType = 0;
	late String alarmTypeZh = '';
	late int alarmLevel = 0;
	late double val = 0;
	/// 报警时间 时间戳
	late int alarmStartTime = 0;
	late int alarmEndTime = 0;
	late int status = 0;
	late int dataType = 0;
	late int disposalMethod = 0;
	late int latestDisposalId = 0;
	late String latestDisposalName = '';

	late String disposalMeasures = '';
	late String disarmingDescription = '';
	late String disposalMeasuresAnnex = '';
	late String disarmingDescriptionAnnex = '';
	late int alramMinimum = 0;
	late String createTime = '';
	late String monitorName = '';
	late String systemName = '';
	late String categoryZh = '';
	late String monitorCode = '';
	late String deviceCode = '';
	late String deviceName = '';
	/// 1、督办派发 2、督办处置 3、派发 0、无操作按钮权限
	late String supervisionStatusStr = '';
	/// 新的状态
	late String disposalStatus = '';
	/// 报警时长 分钟
	late String alarmTimeMin = '';
	/// 政府规定阈值
	late int governmentVal = 0;
	/// 内部规定阈值
	late int internalVal = 0;


	Map<String, dynamic> toJson() => $AlarmRespEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}